package com.ebeijia.service.user.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ebeijia.mybatis.mapper.CommonUserMapper;
import com.ebeijia.mybatis.pojo.CommonUserInfo;
import com.ebeijia.service.user.CommonUserService;

@Service("commonUserService")
public class CommonUserServiceImpl implements CommonUserService {
	
	@Autowired
	private CommonUserMapper commonUserMapper;

	@Override
	public List<Map<String, CommonUserInfo>> getUserIdByHomeSource(String userId) {
		
		return commonUserMapper.getUserIdByHomeSource(userId);
	}

	@Override
	public CommonUserInfo getUserNOHome(String userNo) {
		
		return commonUserMapper.getUserNOHome(userNo);
	}

	@Override
	public List<CommonUserInfo> getOpenId(String openId) {
		return commonUserMapper.getOpenId(openId);	
	}
	
}
